﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QuanLyMenu.aspx.cs" Inherits="ChamCong.Admin.QuanLyMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="../Scripts/jsHelper.js"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="content-box">
        <div class="border">
            <div class="padding">
                <div class="clr">
                </div>
                <div id="element-box">
                    <div class="m">
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <sbc:sbcMsgBox ID="sbcMsgBox1" runat="server" UseJQuery="True" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tbody>
                                        <tr valign="top">
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <asp:TreeView ID="QLMenuTrai" runat="server" Target="_self" ShowCheckBoxes="All" SkipLinkText=""
                                                    onselectednodechanged="MenuTrai_SelectedNodeChanged" >
                                                    <SelectedNodeStyle ForeColor="#CC0000" Font-Size="10pt" Font-Bold="True"></SelectedNodeStyle>
                                                </asp:TreeView>
                                            </td>
                                            <td style="width: 4px">
                                                &nbsp;
                                            </td>
                                            <td>
                                                <table border="0" width="70%">
                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                        <ContentTemplate>                                                
                                                            <tbody>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:RadioButtonList ID="rdbMenu" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rdbMenu_SelectedIndexChanged"
                                                                            RepeatDirection="Horizontal">
                                                                            <asp:ListItem Value="2">Thông tin</asp:ListItem>
                                                                            <asp:ListItem Value="0" >Thêm mới</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Loại cấp menu:</td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlLoaiCap" runat="server" AutoPostBack="True" 
                                                                            onselectedindexchanged="ddlLoaiCap_SelectedIndexChanged">
                                                                            <asp:ListItem Selected="True" Value="1">Cấp một</asp:ListItem>
                                                                            <asp:ListItem Value="2">Cấp hai</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Menu cha:
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlMenuCapMot" runat="server" AutoPostBack="True">
                                                                            <asp:ListItem Value="0">---</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Tên menu:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="tbxTenTrang" runat="server" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        Mô tả menu:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtmenu_description" runat="server" Width="200px" Rows="2"
                                                                            TextMode="MultiLine"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Trang menu chuyển đến:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="tbxDuongDan" runat="server" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Vị trí:
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="tbxViTri" runat="server" Width="51px"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                <tr>
                                                                    <td height="25">
                                                                        Trạng thái:
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlHienThi" runat="server" Enabled="false">
                                                                            <asp:ListItem Value="1">Hiển thị</asp:ListItem>
                                                                            <asp:ListItem Value="0">Ẩn</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2" height="25">
                                                                        <asp:Button class="button" ID="btnAdd" OnClick="btnAdd_Click" runat="server" 
                                                                            Text="Thêm"></asp:Button>
                                                                        <asp:Button class="button" ID="btnDelSelected" runat="server" Visible="false"
                                                                            Text="Xóa mục đã chọn"></asp:Button>
                                                                        <asp:Button class="button" ID="btnSave" OnClick="btnSave_Click" runat="server" 
                                                                            Visible="False" Text="Lưu"></asp:Button>
                                                                        <asp:Button class="button" ID="btnNotSave" OnClick="btnNotSave_Click" runat="server" Visible="False"
                                                                            Text="Quay Lại"></asp:Button>
                                                                        <asp:Button class="button" ID="btnDel" OnClick="btnDel_Click" runat="server" 
                                                                            Visible="False" Text="Xóa"></asp:Button>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="b">
                        <div class="b">
                            <div class="b">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clr">
            </div>
        </div>
    </div>
    <div id="border-bottom">
        <div>
            <div>
            </div>
        </div>
    </div>
</asp:Content>
